@import "color";
@import "mixin";

body, html {
  padding: 0;
  margin: 0;
  line-height: 1;
  font-family: 'PingFang SC', 'STHeitiSC-Light', 'Helvetica-Light', arial, sans-serif, 'Droid Sans Fallback';
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
input, button {
  border: none;
  outline: none;
}

a {
  color: initial;
}
.clear-fix {
  &::after {
    content: "";
    display: table;
    clear: both;
  }
}


.border-top-1px, .border-right-1px, .border-bottom-1px, .border-left-1px {
  position: relative;

  &::before, &::after {
    content: "";
    display: block;
    position: absolute;
    transform-origin: 0 0;
  }
}


.border-top-1px {
  &::before {
    border-top: 1PX solid @color-row-line;
    left: 0;
    top: 0;
    width: 100%;
    transform-origin: 0 top;
  }
}


.border-right-1px {
  &::after {
    border-right: 1PX solid @color-col-line;
    top: 0;
    right: 0;
    height: 100%;
    transform-origin: right 0;
  }
}

.border-bottom-1px {
  &::after {
    border-bottom: 1PX solid @color-row-line;
    left: 0;
    bottom: 0;
    width: 100%;
    transform-origin: 0 bottom;
  }
}

.border-left-1px {
  &::before {
    border-left: 1PX solid @color-col-line;
    top: 0;
    left: 0;
    height: 100%;
    transform-origin: left 0;
  }
}

@media (min-resolution: 2dppx) {
  .border-top-1px {
    &::before {
      width: 200%;
      transform: scale(.5);
    }
  }

  .border-right-1px {
    &::after {
      height: 200%;
      transform: scale(.5);
    }
  }

  .border-bottom-1px {
    &::after {
      width: 200%;
      transform: scale(.5);
    }
  }

  .border-left-1px {
    &::before {
      height: 200%;
      transform: scale(.5);
    }
  }
}

@media (min-resolution: 3dppx) {
  .border-top-1px {
    &::before {
      width: 300%;
      transform: scale(.333);
    }
  }

  .border-right-1px {
    &::after {
      height: 300%;
      transform: scale(.333);
    }
  }

  .border-bottom-1px {
    &::after {
      width: 300%;
      transform: scale(.333);
    }
  }

  .border-left-1px {
    &::before {
      height: 300%;
      transform: scale(.333);
    }
  }
}

.no-wrap {
  .ellipsis();
}

.no-wrap-2 {
  .multi-ellipsis(2);
}

.extend-click {
  position: relative;

  &:after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
  }
}

.btn {
  text-align: center;
  box-sizing: border-box;
  display: inline-block;
  height: 80px;
  line-height: 80px;
  border: none;
  outline: none;
  font-size: 30px;
  border-radius: 40px;
  color: @color-white;
  padding: 0 20px;
}

a {
  text-decoration: none;
}
